﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Registrar : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        // Set the title of the page
        this.Title = AcheiCampinasConfiguration.SiteName + " : Registrar";
    }

    protected void CreateUserWizard1_CreatedUser(object sender,EventArgs e)
    {
        Roles.AddUserToRole((sender as CreateUserWizard).UserName, "Anunciantes");
        Response.Redirect("MinhasInformacoes.aspx");
    }
}